<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8">
    <title>LOGIN</title>
</head>
<body>

<form action="/api/v1/auth/form" method="post">
    <p th:text="${token}"></p>
    <input type="hidden" name="token" th:value="${token}"/>
    <input name="username" type="text" placeholder="姓名"><br>
    <input name="password" type="password" placeholder="密码"><br>
    <input name="image" type="text" placeholder="验证码"><br>
    <img alt="验证码" onclick="this.src='/api/v1/auth/image?' + Math.floor(Math.random() * 100)"
         src="/api/v1/auth/image">
    <input type="submit" value="登录">

</form>
</body>
</html>